package com.iot08.api.vo.request;

import com.iot08.api.vo.request.base.BodyForm;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class UserExitsReqBodyFormVo extends BodyForm implements Serializable {

    private @NotEmpty(message = "用户电话号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式有误")
    String phone;

    private @NotNull(message = "国家编码不能为空")
    Integer country_code;
}